/*
 * This file is part of the zlog Library.
 *
 * Copyright (C) 2011 by Hardy Simpson <HardySimpson1984@gmail.com>
 *
 * Licensed under the LGPL v2.1, see the file COPYING in base directory.
 */

#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>

#include "zlog.h"

int main(int argc, char** argv)
{
        int rc;
        zlog_category_t *zc;


        rc = zlog_init("/home/cong/cpp-grape/part/zlog.conf");
        if (rc) {
                printf("init failed, try zlog-chk-conf test_conf.conf for more detail\n");
                return -1;
        }

        zc = zlog_get_category("my_cat");
        if (!zc) {
                printf("get cat fail\n");
                zlog_fini();
                return -2;
        }

        zc=zlog_get_category("process_n");
        zlog_info(zc,"dddd");
        return 0;
}
